package kyuu.acshmily.components
{
	import kyuu.acshmily.utils.CommonUtils;
	
	import mx.controls.Label;
	
	public class MessageRender extends Label
	{
		public function MessageRender()
		{
			super();
			this.setStyle("paddingLeft", 5);
		}

		override public function set text(value:String):void{
			super.text = value;
			super.toolTip = value;
		}
		
		override public function set data(value:Object):void{
			super.data = value;
			if(value.@isLocked > 0){
				setStyle("color", CommonUtils.LOCKED_COMMENT_COLOR);
			}
		}
	}
}